package com.hmy.finance.dal.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 损益日志表
 *
 * @author songkf
 */
@Data
@TableName(value = "profit_loss_daily_log", autoResultMap = true)
public class ProfitLossDailyLogPo implements Serializable {
    private static final long serialVersionUID = -6842722799014825286L;
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 发生时间
     */
    @TableField(value = "incurred_time")
    private LocalDateTime incurredTime;
    /**
     * 关联的损益业务记录ID集合
     */
    @TableField(value = "related_profit_loss_record_ids", typeHandler = JacksonTypeHandler.class)
    private List<Long> relatedProfitLossRecordIds;

}
